import axios from "@utils/axios";
import querystring from "qs";
// 获取列表
export const getDataList = (data) => {
    // 使用qs达到拼接的目的
    // const string =querystring.stringify(data);
    // const url = `/register?${string}`
    const url = `/register`
    return axios.get(url);
}

// 通过患者姓名搜索
export const getDataByName = (data) => {
    console.log('axios',data)
    const string = querystring.stringify(data)
    const url = `/register/queryname?${string}`
    return axios.get(url);

}